<?php

/**
 * forum actions.
 *
 * @package    s-test
 * @subpackage forum
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class forumActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeShow(sfWebRequest $request){
	 $this->ktd_forum = Doctrine::getTable('KTDForum')->
                            find(array($request->getParameter('id')));
         $this->forward404Unless($this->ktd_forum, "Ce forum n'existe plus ou plus !");
         /*On récupére une liste ordonnée de sujets sur ce forum*/
         $this->ktd_topics = $this->ktd_forum->getOrderedTopics();

  }
}
